public class Student {
    // 属性
    public String id;
    public String name;
    public String gender;
    public String[] courseIds; // 所选课程的ID数组
    public int courseCount;    // 当前选课数量

    // 构造方法
    public Student(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.courseIds = new String[5]; // 最多选5门课
        this.courseCount = 0;
    }

    // 显示学生信息
    public void showInfo() {
        System.out.println("学生编号: " + id);
        System.out.println("学生姓名: " + name);
        System.out.println("性别: " + gender);
        System.out.println("已选课程数: " + courseCount);
        System.out.println("-------------------");
    }
}